:root {
  --primary: #7b1f64;
  --primary-dark: #4d123f;
  --primary-soft: #f8eaf4;
  --accent: #e85d75;
  --accent-dark: #c83e59;
  --ink: #18212f;
  --muted: #667085;
  --line: #eadde7;
  --surface: #ffffff;
  --surface-soft: #fff8fb;
  --shadow-sm: 0 10px 28px rgba(77, 18, 63, 0.1);
  --shadow-md: 0 18px 48px rgba(77, 18, 63, 0.16);
  --shadow-lg: 0 28px 70px rgba(77, 18, 63, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  padding-top: 78px;
  margin: 0;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(248, 234, 244, 0.72), transparent 34rem),
    linear-gradient(180deg, #fffafc 0%, #ffffff 36%, #fff8fb 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

p {
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--muted);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--primary-dark);
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0;
}

a {
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

img {
  max-width: 100%;
}

::selection {
  color: #fff;
  background: var(--primary);
}

.text-muted {
  color: var(--muted) !important;
}

.bg-light {
  background: linear-gradient(135deg, #fff8fb 0%, #f7fbff 100%) !important;
}

body > section.bg-light.py-5:first-of-type {
  position: relative;
  overflow: hidden;
  padding: 78px 0 64px !important;
  border-bottom: 1px solid rgba(123, 31, 100, 0.1);
}

body > section.bg-light.py-5:first-of-type::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, rgba(123, 31, 100, 0.1), transparent 42%),
    radial-gradient(circle at 82% 18%, rgba(232, 93, 117, 0.18), transparent 18rem);
}

body > section.bg-light.py-5:first-of-type .container {
  position: relative;
}

body > section.bg-light.py-5:first-of-type h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.btn,
.book-btn,
.btn-appointment,
.hero-section .btn,
.navbar-nav .nav-item .btn {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 14px 28px rgba(123, 31, 100, 0.24);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-position 0.25s ease, filter 0.25s ease;
}

.btn:hover,
.book-btn:hover,
.btn-appointment:hover,
.hero-section .btn:hover,
.navbar-nav .nav-item .btn:hover {
  color: #fff !important;
  transform: translateY(-3px);
  filter: saturate(1.08);
  box-shadow: 0 20px 38px rgba(123, 31, 100, 0.32);
}

.btn:focus-visible,
.book-btn:focus-visible,
.form-control:focus,
.accordion-button:focus,
.navbar-toggler:focus {
  border-color: rgba(123, 31, 100, 0.24);
  box-shadow: 0 0 0 0.22rem rgba(123, 31, 100, 0.16);
}

/* WhatsApp icon */
.whatsapp-float {
  position: fixed;
  right: 26px;
  bottom: 34px;
  width: 62px;
  height: 62px;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 31px;
  z-index: 9999;
  background: linear-gradient(135deg, #20c463, #0f9f52);
  box-shadow: 0 18px 38px rgba(19, 150, 78, 0.35);
  text-decoration: none;
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(32, 196, 99, 0.36);
  border-radius: inherit;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.whatsapp-float:hover {
  color: #fff;
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 24px 48px rgba(19, 150, 78, 0.44);
}

.whatsapp-float:hover::before {
  opacity: 1;
  transform: scale(1);
}

/* Sticky navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1030;
  min-height: 78px;
  background: rgba(255, 255, 255, 0.9) !important;
  border-bottom: 1px solid rgba(123, 31, 100, 0.1);
  box-shadow: 0 12px 34px rgba(77, 18, 63, 0.09) !important;
  backdrop-filter: blur(16px);
}

.navbar-brand {
  padding: 0;
  background: transparent !important;
}

.navbar-brand img {
  width: 54px;
  height: 54px;
  border-radius: 0;
  object-fit: contain;
  background: transparent !important;
  box-shadow: none;
}

.navbar .nav-item a {
  position: relative;
  margin: 0 7px;
  padding: 10px 13px !important;
  border-radius: 999px;
  color: var(--ink) !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.navbar-nav .nav-item .nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.navbar-nav .nav-item a:hover,
.navbar-nav .nav-item .nav-link.active {
  color: var(--primary) !important;
  background: rgba(248, 234, 244, 0.78);
}

.navbar-nav .nav-item a:hover::after,
.navbar-nav .nav-item .nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.book-btn {
  padding: 10px 24px;
  white-space: nowrap;
}

.navbar-toggler {
  border: 1px solid rgba(123, 31, 100, 0.16);
  border-radius: 12px;
  padding: 8px 10px;
}

/* Home slider */
.home-slider {
  position: relative;
  overflow: hidden;
}

.slider-img {
  height: calc(100vh - 78px);
  min-height: 520px;
  object-fit: cover;
}

.carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(77, 18, 63, 0.18), rgba(255, 255, 255, 0.02));
}

.carousel-indicators [data-bs-target] {
  width: 28px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.72);
}

.carousel-indicators .active {
  background-color: #fff;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(77, 18, 63, 0.5);
  background-size: 50%;
  backdrop-filter: blur(8px);
}

/* Hero section */
.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  padding: 82px 0 70px;
  background: linear-gradient(135deg, #ffffff 0%, #fff3f8 52%, #f4fbff 100%);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 12%, rgba(232, 93, 117, 0.14), transparent 19rem),
    radial-gradient(circle at 86% 66%, rgba(123, 31, 100, 0.13), transparent 22rem);
}

.hero-section .container {
  position: relative;
}

.hero-section h1 {
  font-size: clamp(2.15rem, 4.2vw, 4.25rem);
  line-height: 1.08;
  color: var(--primary-dark);
}

.hero-section strong {
  color: var(--primary);
}

.hero-section p {
  max-width: 640px;
}

.hero-section img {
  max-height: 560px;
  object-fit: contain;
  filter: drop-shadow(0 28px 44px rgba(77, 18, 63, 0.18));
}

.hero-section .btn {
  padding: 12px 24px;
  margin-top: 8px;
}

.doctor-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 760px;
}

.doctor-credentials span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(123, 31, 100, 0.14);
  border-radius: 999px;
  background: linear-gradient(135deg, #fff, var(--primary-soft));
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 8px 18px rgba(77, 18, 63, 0.08);
}

/* Medanta hospital */
.hero-medanta {
  background: linear-gradient(135deg, var(--primary-soft), #ffffff);
}

.hero-medanta h2 {
  font-size: 2.2rem;
  line-height: 1.45;
  font-weight: 700;
}

.hero-medanta img,
.sticky-image img,
.about-section img {
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

/* Cards and sections */
.card,
.award-card,
.review-card,
.appointment-card,
.contact-map,
.accordion-item {
  border: 1px solid rgba(123, 31, 100, 0.1);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.card {
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.card:hover {
  cursor: pointer;
  color: inherit;
  background: #fff;
  border-color: rgba(232, 93, 117, 0.34);
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.card-title {
  color: var(--primary-dark);
  font-weight: 700;
}

.card-text {
  color: var(--muted);
}

.award-card,
.review-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  padding: 30px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.award-card::before,
.review-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.award-card:hover,
.review-card:hover {
  transform: translateY(-8px);
  border-color: rgba(232, 93, 117, 0.34);
  box-shadow: var(--shadow-md);
}

.award-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 34px;
}

/* Cards sliding */
.specialization-slider {
  margin-inline: -10px;
}

.slider-card {
  min-height: 290px;
  margin: 0 12px 20px;
  border-radius: 8px;
}

.slider-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.45s ease;
}

.slider-card:hover img {
  transform: scale(1.07);
}

.slider-card .card-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
}

.slider-card .card-title {
  margin-bottom: 0;
  text-align: center;
  font-size: 1rem;
}

.slider-card .card-text {
  font-size: 0.92rem;
}

.slick-list {
  padding: 14px 0 24px;
}

.slick-dots li button::before {
  color: var(--primary);
  opacity: 0.35;
  font-size: 9px;
}

.slick-dots li.slick-active button::before {
  color: var(--primary);
  opacity: 1;
}

.slick-prev,
.slick-next {
  z-index: 2;
  width: 42px;
  height: 42px;
}

.slick-prev::before,
.slick-next::before {
  color: var(--primary);
  font-size: 34px;
}

/* Why choose */
.why-choose {
  padding: 72px 0;
  background: linear-gradient(135deg, #fff 0%, #fff8fb 100%);
}

.why-choose h3 {
  margin-bottom: 10px;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
}

.why-choose p {
  margin-bottom: 34px;
  font-size: 1rem;
}

.why-ul {
  max-width: 940px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.why-ul li,
.service-list li {
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.why-ul li {
  margin-bottom: 16px;
  padding: 23px 24px 23px 60px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
  border: 1px solid rgba(123, 31, 100, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.why-ul li::before,
.service-list li::before {
  content: "\2713";
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 20px rgba(123, 31, 100, 0.18);
}

.why-ul li::before {
  left: 20px;
  top: 24px;
  width: 28px;
  height: 28px;
  font-size: 0.95rem;
}

.why-ul li:hover {
  transform: translateX(8px);
  border-color: rgba(232, 93, 117, 0.34);
  box-shadow: var(--shadow-md);
}

/* FAQs */
.faq-section {
  background-color: transparent;
}

.faq-section h2 {
  font-size: 2rem;
}

.faq-section img {
  text-align: center;
  background: none;
  filter: drop-shadow(0 16px 22px rgba(77, 18, 63, 0.12));
}

.faq-accordion {
  max-width: 900px;
}

.accordion-item {
  overflow: hidden;
  margin-bottom: 16px;
  border-radius: 8px !important;
}

.accordion-button {
  padding: 20px 22px;
  color: var(--ink);
  background-color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.accordion-button:not(.collapsed) {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.accordion-body {
  color: var(--muted);
  background-color: #fff;
  font-size: 0.96rem;
  line-height: 1.7;
}

/* Fetal medicine */
.fetal-section p {
  padding: 5px;
}

.service-list {
  padding-left: 0;
  list-style: none;
}

.service-list li {
  margin-bottom: 12px;
  padding: 13px 16px 13px 46px;
  border: 1px solid rgba(123, 31, 100, 0.09);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(77, 18, 63, 0.07);
}

.service-list li::before {
  left: 14px;
  top: 13px;
  width: 22px;
  height: 22px;
  font-size: 0.78rem;
}

.service-list li:hover {
  transform: translateX(6px);
  border-color: rgba(232, 93, 117, 0.3);
  box-shadow: var(--shadow-sm);
}

.sticky-image {
  position: sticky;
  top: 112px;
  padding: 24px;
}

.sticky-image img {
  width: 100%;
  background: linear-gradient(135deg, #fff, #fff8fb);
}

/* Contact page */
.contact-left {
  position: relative;
  overflow: hidden;
  height: 100%;
  padding: 42px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(77, 18, 63, 0.96), rgba(123, 31, 100, 0.94)),
    linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: var(--shadow-md);
}

.contact-left::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.contact-left h3,
.contact-left h6,
.contact-left p {
  position: relative;
  color: #fff;
}

.contact-left h3 {
  font-weight: 800;
}

.contact-item {
  position: relative;
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
}

.contact-item i {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1.25rem;
}

.contact-item h6 {
  margin-bottom: 4px;
  font-weight: 700;
}

.contact-item p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.88;
}

.contact-item a {
  color: #fff;
  text-decoration: none;
}

.social-links a,
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.25s ease, color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.social-links a {
  width: 42px;
  height: 42px;
  margin-right: 10px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.social-links a:hover {
  color: #fff;
  background: var(--accent);
  transform: translateY(-4px);
}

.contact-map {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 430px;
  border: 0;
  filter: saturate(0.95) contrast(1.02);
}

/* Book appointment */
.appointment-section {
  padding: 70px 15px;
}

.appointment-card {
  max-width: 1120px;
  margin: auto;
  padding: clamp(26px, 4vw, 46px);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.appointment-card h2 {
  margin-bottom: 28px;
  text-align: center;
  font-weight: 800;
}

.form-label {
  color: var(--ink);
  font-weight: 700;
}

.form-control {
  min-height: 50px;
  border: 1px solid rgba(123, 31, 100, 0.15);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.form-control:hover {
  border-color: rgba(123, 31, 100, 0.34);
}

textarea.form-control {
  min-height: 130px;
}

.btn-appointment {
  padding: 13px 18px;
  font-size: 16px;
}

/* Reviews */
.review-stars {
  color: #f6b739;
  font-size: 1.15rem;
  letter-spacing: 2px;
}

.review-text {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.75;
}

.review-name {
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

/* Footer */
.footer {
  position: relative;
  overflow: hidden;
  padding: 58px 0 16px;
  background:
    linear-gradient(145deg, #32102c 0%, #5d174c 52%, #7b1f64 100%) !important;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 16%, rgba(255, 255, 255, 0.12), transparent 18rem),
    radial-gradient(circle at 92% 72%, rgba(232, 93, 117, 0.22), transparent 20rem);
}

.footer .container {
  position: relative;
}

.footer-title {
  margin-bottom: 16px;
  color: #ffffff;
  font-weight: 800;
}

.footer-text,
.footer p {
  color: rgba(255, 255, 255, 0.76) !important;
  line-height: 1.7;
}

.footer-links {
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: 9px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(4px);
}

.social-icons a {
  width: 38px;
  height: 38px;
  margin-right: 10px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.1);
}

.social-icons a:hover {
  color: var(--primary);
  background: #fff;
  transform: translateY(-4px);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.18);
}

.policy a {
  margin: 0 5px;
  color: white;
  text-decoration: none;
}
